#ifndef BULLET_H
#define BULLET_H

#include <QtGui>
#include "MovingObject.h"

class Player;


class Bullet : public MovingObject
{

public:

    Bullet(QGraphicsItem *parent, Player* _owner, const QPointF& start_pos, const QPointF& start_vel);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    ~Bullet();

    QTime *timer;
    Player* owner;
    int type;
private:
    QImage* img;

};


#endif
